package com.leyou.trade;

import com.leyou.auth.annotation.EnableJwtVerification;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author BaiZY on 2020/9/7.
 * @version 1.0
 */
@EnableJwtVerification
@SpringBootApplication(scanBasePackages = {"com.leyou.trade", "com.leyou.common.advice"})
@EnableFeignClients(basePackages = {"com.leyou.auth.client","com.leyou.item.client", "com.leyou.user.client"})
@MapperScan("com.leyou.trade.mapper")
@EnableScheduling   //开启spring的任务调度支持
public class LyTradeApplication {
    public static void main(String[] args) {
        SpringApplication.run(LyTradeApplication.class, args);
    }
}


